package unit4_1015.test3;

public class Dog extends Pet {
	
	private int love;
	
	
	public int getLove() {
		return love;
	}

	public void setLove(int love) {
		this.love = love;
	}

	public Dog() {
		
	}
	
	public Dog(String name, int health, String sex,int love) {
		super(name, health, sex);
		this.love=love;
	}

	@Override
	public void toHospital() {
		System.out.println("宠物狗去看病");
	}

	@Override
	public void eat() {
		System.out.println("宠物狗吃狗粮");
	}

}
